<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">

<head>
    <meta charset="utf-8">
    <title>用户列表</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">

    <meta http-equiv="Pragma"    content="no-cache"/>
     
    <meta http-equiv="Cache-Control"    content="no-cache"/>
     
    <meta http-equiv="Expires"    content="0"/>

    <link rel="stylesheet" href="/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="/layui/style/admin.css" media="all"/>
</head>
<body class="childrenBody">
<blockquote class="layui-elem-quote news_search">
    <div class="layui-form-item queryTable">

        <div class="layui-input-inline">
            <select  name="type" autocomplete="off" class="layui-input" placeholder="商户类型">
                <option value="">全部</option>
                <option value="AGENCY">代理商</option>
                <option value="ENTERPRISE">商家</option>
            </select>
        </div>

        <div class="layui-input-inline">
            <input name="userName" type="text" value="" placeholder="输入用户名"   autocomplete="off"
                   class="layui-input search_input">
        </div>

        <div class="layui-input-inline" style="width: unset;">
            <a class="layui-btn search_btn ">查询</a>
        </div>
    </div>

</blockquote>
<table class="layui-hide" id="oem_user_info_table" lay-filter="oem_user_info_table"></table>

<div id="user_win" style="display: none;">
    <div class="layui-form-item userTable">

        <div class="layui-input-inline">
            <input name="agencyName" type="text" value="" placeholder="输入用户名" autocomplete="off"
                   class="layui-input search_input">
        </div>

        <div class="layui-input-inline" style="width: unset;">
            <a class="layui-btn agency_btn ">查询</a>
        </div>
    </div>
    <form id="apply_do_form" class="layui-form" action="" lay-filter="user_form">
        <input name="id" type="hidden" value="" id="id">
        <input name="type" type="hidden" value="" id="type">
        <input name="recommendId" type="hidden" value="" id="recommendId">
    </form>
    <table id="department_result" lay-filter="department_result"></table>
</div>

<div id="edit_user_win" style="display: none;">
    <form id="edit_user_form" class="layui-form" action="" lay-filter="edit_user_form" >
        <input type="hidden" name="id"/>

        <div class="layui-form-item">
            <label class="layui-form-label">用户姓名</label>
            <div class="layui-input-block">
                <input type="text" name="userName" required  lay-verify="required" placeholder="请输入用户姓名" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">手机号码</label>
            <div class="layui-input-block">
                <input type="text" name="mobile" required  lay-verify="required" placeholder="请输入手机号码" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="editOk">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</div>

<script type="text/javascript" src="/js/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="/js/common.js"></script>
<script type="text/javascript" src="/layui/layui.js"></script>
<script src="/js/oem/userManageList.js"></script>

<script type="text/html" id="OptData">



    {{#  if(d.type != 'OEM'){ }}
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">注销</a>
    <a class="layui-btn layui-btn-xs" lay-event="change">代理变更</a>
    <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
    {{#  } }}

    {{#  if(d.state != 1){ }}
    <a class="layui-btn layui-btn-xs" lay-event="state">恢复</a>
    {{#  } }}

</script>

<!--商家变更 弹出接收商家表格的 tool（里面的按钮）-->
<script type="text/html" id="hidden1-table-tool">
    <a class="layui-btn layui-btn-xs" lay-event="yes">选择</a>
</script>

</body>
</html>